public class MainApplication {
   class Animal{
        private String name;
        private String species;

        public Animal(String name,String species){
            this.name=name;
            this.species=species;
        }
        public void makeSound(){
            System.out.println("动物声音");
        }
        public String getName(){
            return name;
        }

       public String getSpecies() {
           return species;
       }
   }
}
public static void main(String[] args){
    Animal dog=new Animal("小狗","调皮");
    System.out.println(dog.getName()+"很"+dog.getSpecies());
    dog.makeSound();
}
